package com.zsr.xmall.product.feign;

import com.zsr.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("xmall-ware")
public interface WareFeignService {

    /**
     * 查询sku是否有库存
     * WareSkuController.java:38
     * 1.R加上泛型
     * 2.直接返回list数据
     * 3.自定义解析结果
     */
    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);
}
